← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 13:01:18 2016
Reported on Fri Jan 8 13:01:37 2016

Filename(eval 1115)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 6 statements in 16µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
82126µs26µsCGI::::CORE:regcompCGI::CORE:regcomp (opcode)
74211µs11µsCGI::::CORE:matchCGI::CORE:match (opcode)
6325µs5µsCGI::::CORE:substCGI::CORE:subst (opcode)
2112µs2µsCGI::::CORE:substcontCGI::CORE:substcont (opcode)
0000s0sCGI::::unescapeHTMLCGI::unescapeHTML
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package CGI; sub unescapeHTML {
2 # hack to work around earlier hacks
31400ns push @_,$_[0] if @_==1 && $_[0] eq 'CGI';
416µs12µs my ($self,$string) = CGI::self_or_default(@_);
# spent 2µs making 1 call to CGI::self_or_default
51100ns return undef unless defined($string);
616µs1600ns my $latin = defined $self->{'.charset'} ? $self->{'.charset'} =~ /^(ISO-8859-1|WINDOWS-1252)$/i
# spent 600ns making 1 call to CGI::CORE:match
7 : 1;
8 # thanks to Randal Schwartz for the correct solution to this one
913µs1800ns $string=~ s[&([^\s&]*?);]{
# spent 800ns making 1 call to CGI::CORE:subst
10 local $_ = $1;
11 /^amp$/i ? "&" :
12 /^quot$/i ? '"' :
13 /^gt$/i ? ">" :
14 /^lt$/i ? "<" :
15 /^#(\d+)$/ && $latin ? chr($1) :
16 /^#x([0-9a-f]+)$/i && $latin ? chr(hex($1)) :
17 "&$_;"
18 }gex;
191700ns return $string;
20}
21
22;
 
# spent 11µs within CGI::CORE:match which was called 7 times, avg 2µs/call: # 4 times (4µs+0s) by CGI::header at line 31 of (eval 1114)[CGI.pm:932], avg 1µs/call # once (6µs+0s) by CGI::header at line 50 of (eval 1114)[CGI.pm:932] # once (600ns+0s) by CGI::unescapeHTML at line 6 # once (600ns+0s) by CGI::header at line 54 of (eval 1114)[CGI.pm:932]
sub CGI::CORE:match; # opcode
# spent 26µs within CGI::CORE:regcomp which was called 8 times, avg 3µs/call: # 4 times (17µs+0s) by CGI::header at line 31 of (eval 1114)[CGI.pm:932], avg 4µs/call # 4 times (10µs+0s) by CGI::header at line 28 of (eval 1114)[CGI.pm:932], avg 2µs/call
sub CGI::CORE:regcomp; # opcode
# spent 5µs within CGI::CORE:subst which was called 6 times, avg 800ns/call: # 4 times (2µs+0s) by CGI::header at line 28 of (eval 1114)[CGI.pm:932], avg 450ns/call # once (2µs+0s) by CGI::header at line 51 of (eval 1114)[CGI.pm:932] # once (800ns+0s) by CGI::unescapeHTML at line 9
sub CGI::CORE:subst; # opcode
# spent 2µs within CGI::CORE:substcont which was called 2 times, avg 1µs/call: # 2 times (2µs+0s) by CGI::header at line 51 of (eval 1114)[CGI.pm:932], avg 1µs/call
sub CGI::CORE:substcont; # opcode